﻿using CPF;
using CPF.Mac.Foundation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPFUI.IControl
{
    public class MessagesInfo : CpfObject
    {
        public MessagesInfo()
        {
            Data = new Collection<MessageModel>();
        }
        /// <summary>
        /// 发送/接收人
        /// </summary>
        public UserInfo User
        {
            get { return GetValue<UserInfo>(); }
            set { SetValue(value); }
        }
        /// <summary>
        /// 消息内容
        /// </summary>
        public Collection<MessageModel> Data
        {
            get { return GetValue<Collection<MessageModel>>(); }
            set { SetValue(value); }
        }
        /// <summary>
        /// 发送或是接收
        /// </summary>
        public EChatType SendReceiveType
        {
            get { return GetValue<EChatType>(); }
            set { SetValue(value); }
        }
    }
}
